using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace FrameworkDesign
{
    public interface ICanSendEvent : IBelongToArchitecture
    {

    }
    public static class ICanSendEventExtension
    {
        public static void SendEvent<T>(this ICanSendEvent self,T paramete)
        {
            self.GetArchitecture().SendEvent<T>(paramete);
        }
        public static void SendEvent<T>(this ICanSendEvent self) where T:new()
        {
            self.GetArchitecture().SendEvent<T>();
        }
    }

}

